package review;

public class Rtn {
	public static int count() {
		int x = 5;
		try {
			x /= 1;
			return x;
		} finally {
			System.out.println("finally");
			x = 14;
			// return x;
		}
	}

	public static int count1() {
		int x = 5;
		try {
			x /= 0;
			return x;
		} catch (Exception e) {
			return x;
		} finally {
			System.out.println("finally");
			x = 14;
			// return x;
		}
	}

	public static Point getP() {
		Point p = new Point();
		p.x = 13;
		p.y = 19;
		int x = 4;
		try {
			x /= 1;
			return p;
		} finally {
			System.out.println("finally");
			p.x = 14;
		}
	}

	public static void main(String[] args) {
		int i = count1();
		System.out.println(i);
		Point p = getP();
		System.out.println(p);

	}

}
